package com.ruoyi.finance.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会计科目对象 subject
 *
 * @author ruoyi
 * @date 2025-02-26
 */
@Data
public class Subject
{
    private static final long serialVersionUID = 1L;

    /** 科目ID */
    private Long subjectId;

    /** 科目编码 */
    @Excel(name = "科目编码")
    private String subjectCode;

    /** 科目名称 */
    @Excel(name = "科目名称")
    private String subjectName;

    /** 科目类型 */
    @Excel(name = "科目类型")
    private Long typeId;

    /** 余额方向（0-借方 1-贷方） */
    @Excel(name = "余额方向", readConverterExp = "0=-借方,1=-贷方")
    private Integer balanceDirection;

    /** 辅助核算项 */
    @Excel(name = "辅助核算项")
    private String auxiliaryItems;

    /** 启用状态 */
    @Excel(name = "启用状态")
    private Integer isEnabled;

    /** 上级科目ID */
    @Excel(name = "上级科目ID")
    private Long parentId;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createBy;

    /** 修改人 */
    private String updateBy;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateTime;

    /** 逻辑删除 */
    @Excel(name = "逻辑删除")
    private Integer isDeleted;


}
